package com.vallis.lottery.domain;

import com.vallis.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.math.BigDecimal;
import com.vallis.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 详细票库对象 contain_lottery
 *
 * @author vallis
 * @date 2022-08-10
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ContainLottery extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 0 1 */
    @Excel(name = "0 1")
    private Long lotteryType;
    /** 期数 */
    @Excel(name = "期数")
    private String num;
    /** 搜集数量 */
    @Excel(name = "搜集数量")
    private Long collectTicket;
    /** 搜集金额 */
    @Excel(name = "搜集金额")
    private BigDecimal collectPrice;
    /** 奖金 */
    @Excel(name = "奖金")
    private BigDecimal rewardPrice;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("lotteryType", getLotteryType())
            .append("num", getNum())
            .append("collectTicket", getCollectTicket())
            .append("collectPrice", getCollectPrice())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("deleted", getDeleted())
            .append("remark", getRemark())
            .append("rewardPrice", getRewardPrice())
        .toString();
    }
}
